package com.dlc.shop.bean.enums;

/**
 * 短信类型
 * @author LGH
 */
public enum SmsType {

    /**
     * 验证码提醒
     */
    CAPTCHA(4, "SMS_151810565", "验证码${code}，您正在进行身份验证，请勿告诉他人哦！"),
    ;

    private final Integer num;

    private final String templateCode;

    private final String content;
    public Integer value() {
        return num;
    }

    SmsType(Integer num,String templateCode,String content){
        this.num = num;
        this.templateCode = templateCode;
        this.content = content;
    }

    public static SmsType instance(Integer value) {
        SmsType[] enums = values();
        for (SmsType statusEnum : enums) {
            if (statusEnum.value().equals(value)) {
                return statusEnum;
            }
        }
        return null;
    }

    public String getTemplateCode() {
        return this.templateCode;
    }

    public String getContent() {
        return this.content;
    }
}
